import request from "@/utils/request";
const UnixTime = () => Math.floor(new Date().getTime());

/**
 * 2021-07-16 推广分配方案接口
 */

// 获取分成方案模板 分页

export function getListDtoByPage(data) {
  return request({
    url: "/v2/DistribScheme/getListDtoByPage",
    method: "post",
    data
  });
}

// 添加分成方案模板
export function addScheme(data) {
  return request({
    url: "/v2/DistribScheme/add",
    method: "post",
    data
  });
}

// 获取分成方案模板详情
export function getDtoById(data) {
  return request({
    url: "/v2/DistribScheme/getDtoById",
    method: "post",
    data
  });
}

// 修改分成方案模板详情
export function modifyScheme(data) {
  return request({
    url: "/v2/DistribScheme/modify",
    method: "post",
    data
  });
}
 
// 分成方案 启用
export function enabledScheme(data) {
  return request({
    url: "/v2/DistribScheme/enabled",
    method: "post",
    data
  });
}

// 分成方案 禁用
export function disabledScheme(data) {
  return request({
    url: "/v2/DistribScheme/disabled",
    method: "post",
    data
  });
}

// 分成方案 删除
export function deleteScheme(data) {
  return request({
    url: "/v2/DistribScheme/delete",
    method: "post",
    data
  });
}